package com.zzyl.job;

import com.zzyl.nursing.service.IReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("reservationJob")
public class ReservationJob {

    @Autowired
    private IReservationService reservationService;

    /**
     * 自动更新预约状态
     */
    public void updateReservationStatusJob() {
        reservationService.updateReservationStatus();
        System.out.println("执行更新预约状态");
    }
}
